home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The SelectWare System Volume 5 #4
/
The SelectWare System Volume 5 #4.iso
/
hsc10000
/
dmthree.inf
< prev
next >
Wrap
Text File
|
1993-10-29
|
5KB
|
196 lines
Do SetupINSTALIT
Procedure SetupINSTALIT
SetTopLineTo INSTALLING DIGITAL MORPH DEMO (Press Esc to exit)
SetBackdrop Off
;;
;; The following variables cover all replaceble parameters
;;
;; destination directory
[CommandLine0] := c:\dmshow
;; command line for first icon
[CommandLine1] := [CommandLine0]\HSCRT.EXE
;; file for first icon to run (Specify full path!)
[CommandLine2] := c:\dmshow\dmshow33.IW
;; first icon text
[CommandLine3] := "Digital Morph 486/33 Demo"
;; file for first second icon to run
;; (Specify full path or leave blank for one icon demos)
[CommandLine7] := c:\dmshow\dmshow50.IW
;; second icon text
;; (Specify name or leave blank for one icon demos)
[CommandLine8] := "Digital Morph 486/50 Demo"
;; file for third icon to run
[CommandLine9] := c:\dmshow\nosond33.IW
;; third icon text
;; (Specify name or leave blank for one icon demos)
[CommandLine10] := "Digital Morph Demo No Sound"
;; windows group name
[CommandLine4] := morph.GRP
;; windows group title
[CommandLine5] := "DIGITAL MORPH DEMOS"
;; disk space required in Megabytes
[CommandLine6] := 11
;; BreakKey specified in the Win.ini file
[CommandLine9] := Esc
If CGA
[Number1] := 320 - 130 + 40
[Number2] := 6
[Number3] := 320 + 130 + 40
[Number4] := 27
[Number5] := 320 - 130 + 50
[Number6] := 13
[String1] := HSCBAK.BMP
EndIf
If EGA
[Number1] := 320 - 130 + 40
[Number2] := 11
[Number3] := 320 + 130 + 40
[Number4] := 47
[Number5] := 320 - 130 + 50
[Number6] := 23
[String1] := HSCBAK.BMP
EndIf
If HGC
[Number1] := 360 - 130 + 40
[Number2] := 11
[Number3] := 360 + 130 + 40
[Number4] := 47
[Number5] := 320 - 130 + 90
[Number6] := 23
[String1] := HSCBAK.BMP
EndIf
If VGA
[Number1] := 320 - 130 + 40
[Number2] := 15
[Number3] := 320 + 130 + 40
[Number4] := 65
[Number5] := 320 - 130 + 50
[Number6] := 32
[String1] := HSCBAK.BMP
EndIf
;; While it is not documented anywhere else it is true that FreeSpaceOnDrive
;; considers only the first character of its first parameter (in this case
;; the drive letter of the temporary directory).
If FreeSpaceOnDrive ShadowDirectory < 300000
popup There is insufficient space on the TEMP drive for installation.
SoLong
EndIf
QueFileGroup 1 to ShadowDirectory
GetQuedFiles
LoadBitMap 1 ShadowDirectory\[String1] @xy(0,0)
ShowBitMap 1 ShadowDirectory\[String1] @xy(0,0)
ShowWindow Maximized
EndProcedure
Dialog PressAKey UseHeader "DIGITAL MORPH DEMO"
This installation routine will copy the necessary files to your hard
disk.
No changes will be made to your Autoexec.bat or Config.sys files.
A new Windows Program Group and icon will be added.
EndDialog
GetMenuChoice UseHeader "Make a Selection Please" ConfirmIfNone @xy(center,center)
Install Demo
; Requires approximately [CommandLine6] Megabytes of Hard Disk Space.
Exit
; Quit the installation process.
EndGetMenuChoice
InCase Choice is
=1: Do Install1
=2: Do Install2
EndInCase
Procedure Install1
CreateDirectoryIfNecessary [CommandLine0]
QueFileGroup 2 to [CommandLine0]
GetQuedFiles ShowJustOne
;;SALUTATION
BuildProgramGroup "DIGITAL MORPH DEMO" MORPH.GRP {Replace}
c:\dmshow\hscrt.exe c:\dmshow\dmshow33.iw "Digital Morph 486/33 Demo"
c:\dmshow\hscrt.exe c:\dmshow\dmshow50.iw "Digital Morph 486/50 Demo"
c:\dmshow\hscrt.exe c:\dmshow\nosond33.iw "Digital Morph Demo No Sound"
EndBuildProgramGroup
CopyFiles from [CommandLine0] to [WindowsDirectory]\system Quietly
mciaap.drv
aaplay.dll
aavga.dll
EndCopyFiles
SetModifyModeTo Modify
ModifyTextFile [WindowsDirectory]\win.ini Quietly NoBackup
InSection [MCI extensions]
AddOrChangeLineWith (flc,=,) as "flc=animation1" at end
AddOrChangeLineWith (fli,=,) as "fli=animation1" at end
EndModifyTextFile
ModifyTextFile [WindowsDirectory]\system.ini Quietly NoBackup
InSection [MCI]
AddOrChangeLineWith (Animation1,=,) as "Animation1=mciaap.drv" at end
EndModifyTextFile
ModifyTextFile [WindowsDirectory]\win.ini Quietly NoBackup
AddOrChangeLineWith ([IconAuthor],,) as "[IconAuthor]" at end
EndModifyTextFile
ModifyTextFile [WindowsDirectory]\win.ini Quietly NoBackup
InSection [IconAuthor]
AddOrChangeLineWith (BreakKey,=,) as "BreakKey=[CommandLine9]" at end
EndModifyTextFile
EndProcedure
Dialog PressAKey UseHeader "INSTALLATION COMPLETE"
Thank You.
EndDialog
Dialog PressAKey UseHeader "TECHNICAL ASSISTANCE"
We hope we have anticipated all your needs.
We will be glad to assist you with any challenges.
HSC Software.
The technical support staff is available to help you 9AM to 5PM PST.
(310) 392-8441 FAX (310) 392-6015
EndDialog
Procedure Install2
DeleteFiles from ShadowDirectory
HS*.BMP
EndDeleteFiles
SoLong Quietly
EndProcedure
DeleteFiles from ShadowDirectory
HS*.BMP
EndDeleteFiles
SoLong Quietly
EndScript